import { View } from "../../../mvc/core/View";
import { LayerManager } from "../../manager/LayerManager";
import { ObjCreate } from "../common/ObjCreate";
import { ResFileConst } from "../../resource/ResFileConst";
import { GangFightsEnterWindow } from "./GangFightsEnterWindow";
import { GLoadedButton } from "../../../../com/mui/controls/GLoadedButton";
//class GangFightsOpenIcon
    
    export  class GangFightsOpenIcon extends View
    {
        constructor()
        {
            super();
            this.layer = LayerManager.rightTopUILayer;
            this.init();
            return;
        }

        /* internal  */init(): void
        {
            this._btn = ObjCreate.createGLoadedButton(ResFileConst.GangFightsIcon, 0, 0, 60, 50, this);
            this._btn.addEventListener(flash.events.MouseEvent.CLICK, this.onClickBtn);
            return;
        }

        /* internal  */onClickBtn(arg1: Object /* flash.events.MouseEvent */): void
        {
            GangFightsEnterWindow.instance.show();
            return;
        }

        public static get instance(): GangFightsOpenIcon
        {
            if (!GangFightsOpenIcon._instance) 
            {
                GangFightsOpenIcon._instance = new GangFightsOpenIcon();
            }
            return GangFightsOpenIcon._instance;
        }

        /* internal */ /* var */_btn: GLoadedButton;

        /* internal */ static /* var */_instance: GangFightsOpenIcon;
    }
